Group Grid Tool – Properties

The following table lists and describes properties of the Group Grid Tool as they are exposed on the Property Sheet and/or in the tool's script editor. Many of these properties are also exposed on a tool's (OCXProperties) property sheets. A property's name sometimes varies depending on where it appears.

Browse by letter:     [A]     [B]     [C]     [D]     [E]     [F]     [G]     [H]     [I]     [K]     [L]     [N]     [O]     [P]     [R]     [S]     [T]     [U]     [V]

Property Sheet Script Editor X Method Description

N/A

AllConfigXml

No

Identifies an XML string that defines the default properties of the grid.

Note: This property is not intended to be used for typical scripts. It may be hidden in some property browsers.

AllowRowSizing

AllowRowSizing

Yes

 

AllowUnitsChange

AllowUnitsChange

Yes

Enables unit changes to be displayed in Run mode. Unit types affected are primary and alternate. Options are 0 — No and 1 — Yes. The default is 1 — Yes. If 0 — No is specified, the Use Alternate Units option is disabled in Run mode. Script subtype is Boolean.

For the Group Grid Tool, this change is a right-click option in the top, left cell.

AlternateUnits

AlternateUnits

Yes

Specifies that the object display values in alternate units instead of primary units. Alternate units must be defined in the point configuration record for the relevant point. Otherwise, alternate units cannot be displayed by the tool. Property sheet options are 0 — No and 1 — Yes. Default is 0 — No. Script subtype is Boolean.

[AutoRestart]

AutoRestart

No

[AutoRestart] specifies whether TheView automatically restarts when a user changes a Facility Navigation Bar object, a Group Grid object, or a Group Navigation Bar object.

[AutoRestart] is typically used to reset the Facility ID of TheView for templated objects. It is not required to reset the contents in a Group Grid object.

When used with a Facility Navigation Bar or a Group Navigation Bar, the [Facility] property of TheView is set to match the facility selected in the drop-down menu.

When used with a Group Grid object, the [Facility] property of TheView changes to match the Group Grid row when the row is clicked.

Use (1 - Yes) to enable. The default is 0 - No.

AutoSizeFont

AutoSizeFont

No

AutoSizeFont specifies whether the object’s font is automatically resized:

Shrink to Fit and Expand to Fit resize the font in Edit mode so that the text fits the boundary of the object. You can use these options to resize the font without using the object’s Font property to explicitly set the font size. In Run mode, the font is dynamically resized in Run mode to accommodate the [DisplayItem] or the tokens specified by the Text property.

  • Shrink to Fit — reduces the font size so the text fits in the object boundary. If the object is resized in Run mode, the font size can never exceed the size specified by the object’s Font property.
  • Expand to Fit — increases the font size so the text fills the object boundary. If the object is resized in Run mode, the font size can never be less than the size specified by the object’s Font property.
  • Best Fit — resizes the font to best fit the text inside the object boundary. If the object is resized in Run mode, the font is also resized. This setting is a combination of Shrink to Fit and Expand to Fit.

Proportional and Proportional Fit resize the font in Run mode based on resizing of TheView.

  • Proportional — resizes the font proportionally to TheView as TheView is resized.
  • Proportional Fit — resizes the font proportionally to the object as the object is resized. This option reduces the font size only when necessary to view all of the text. This is the recommended option when font resizing is required.

Note: An object can be resized in Run mode only if its FlexHorizontal and FlexVertical properties are set to 2 — Expand or 3 — Proportional.

Available AutoSizeFont options are 1 — Shrink to Fit, 2 — Expand to Fit, 3 — Best Fit, 4 — Proportional, and 5 — Proportional Fit. The default is 0 — No (no font resizing).

An object can be resized in Run mode only if its FlexHorizontal and FlexVertical properties are set to 2 - Expand or 3 - Proportional.

Available options are 1 - Shrink to Fit, 2 - Expand to Fit, 3 - Best Fit, 4 - Proportional, and 5 - Proportional Fit. The default is 0 - No (no font resizing).

AutoStart

AutoStart

Yes

Specifies whether the control will automatically initiate Run mode when its container changes to Run mode. Options are 0 — No or 1 — Yes. The default is 1 — Yes.

For the Group Grid Tool, AutoStart enables the Facility ID of each row to be automatically configured by a navigation bar. Set to 0 — No only when manually configuring the rows using script.

BackColor

BackColor

Yes

BackColor specifies a background color for the object or grid. Note that if an object’s [AlarmElement] property is set to Background Color and a primary point is assigned to the object, the background color will change in Run mode to reflect the point status.

The default is Automatic, which is the background color of TheView for most objects.

Note: In script, you can set this and other color properties using the VBScript function 'control.somecolor = RGB (255,0,0).'

BorderStyle

BorderStyle

Yes

BorderStyle specifies the border style of the object boundary.

Most tools use one of these sets of options:

  • 0 — ibsNone, 1 — ibsRaised, or 2 — ibsLowered, and the default is 0 — ibsNone
  • 0 — None or 1 — Fixed Single, and the default is 0 — None

The Panel Switch Tool uses these options:

  • 0 — ibsLine, 1 — ibsRaised, 2 — ibsLowered, 3 — ibsTop, and 4 — ibsNone, and the default is 0 — ibsLine.

For the Box, Frame, and Text tools, the BorderStyle property specifies the style of the object’s foreground lines. The options are:

  • 0 — Normal, 1 — 3D, 2 — Sunken, 3 — Raised, and 4 — None
  • The default for the Box Tool is 0 — Normal. The default for the Frame Tool is 1 — 3D. The default for the Text Tool is 4 — None.

    If you use 2 — Sunken or 3 — Raised and the effect is not visible, change the object’s HiliteColor.

    If you use 0 — Normal, 2 — Sunken, or 3 — Raised, you can set the border width using the PenWidth property.

For TheFrame/TheView, the BorderStyle property specifies both the style of the object's border and whether the object can be resized by the user in Run mode. The default is 0 — Thin, which means the border is thin and the size is static. The other possible option is 1 — Resizing, which means the border is thicker and can be resized.

See also Appearance.

Script subtype is integer.

Bottom

Bottom

No

Bottom specifies the distance (in pixels) from the top of TheView’s scroll region to the bottom of the object. You can dynamically change this value in Edit mode if you use the mouse to enlarge or shrink the object. See Sizing and Positioning Objects.

CellBackColor

CellBackColor

Yes

Specifies the background color of a cell. Default is white (RGB 255.255.255).

Note: In script, you can set this and other color properties using the VBScript function 'control.somecolor = RGB (255,0,0).'

N/A

ColAlarmElement

Yes

Specifies the alarm element for the specified column. See the Alarm Element As Long table for a list of possible values.

N/A

ColConfigXml

No

Selects an XML string that defines the default properties of the column.

Note: This property is not intended to be used for typical scripts. It may be hidden in some property browsers.

N/A

ColDisplayAlarmAck

Yes

Enables or disables blinking when the point status is not acknowledged. True — enables. False — disables.

Note: If the Group Grid is started, setting this property will not take effect until the grid is restarted. It is recommended that these properties be set only when the grid is stopped.

N/A

ColDisplayElement

No

Specifies the display element for the specified column.

Note: If the Group Grid is started when you set this property, the new setting does not take effect until the grid is restarted. We recommend that you set this property when the grid is stopped.

N/A

ColDisplayFormat

Yes

Specifies the display format for the specified column. The format string is a Microsoft Visual Basic format string.

Note: If the Group Grid is started when you set this property, the new setting does not take effect until the grid is restarted. We recommend that you set this property when the grid is stopped.

N/A

ColDisplayItem

Yes

Specifies the display item for the specified column. The display item can be set as a string or a number. Get returns an item number only.

Note: If the Group Grid is started when you set this property, the new setting does not take effect until the grid is restarted. We recommend that you set this property when the grid is stopped.

N/A

ColFacility

Yes

Specifies the Facility for the specified column.

Note: If the Group Grid is started when you set this property, the new setting does not take effect until the grid is restarted. We recommend that you set this property when the grid is stopped.

N/A

ColLabelText

Yes

Specifies the label text for the specified column.

Note: If the Group Grid is started when you set this property, the new setting does not take effect until the grid is restarted. We recommend that you set this property when the grid is stopped.

N/A

ColSiteService

Yes

Specifies the Site.Service for the specified column.

Note: If the Group Grid is started when you set this property, the new setting does not take effect until the grid is restarted. We recommend that you set this property when the grid is stopped.

N/A

ColSortType

Yes

Specifies Sort Type for the specified column.

Note: If the Group Grid is started when you set this property, the new setting does not take effect until the grid is restarted. We recommend that you set this property when the grid is stopped.

N/A

ColTextAlign

Yes

Specifies the Text Alignment for the specified column.

Note: If the Group Grid is started when you set this property, the new setting does not take effect until the grid is restarted. We recommend that you set this property when the grid is stopped.

N/A

ColTextOverflow

Yes

Specifies the Text Overflow option for the specified column.

Note: If the Group Grid is started when you set this property, the new setting does not take effect until the grid is restarted. We recommend that you set this property when the grid is stopped.

N/A

ColTokenizedText

Yes

Specifies Tokenized Text for a specified column.

Note: If the Group Grid is started when you set this property, the new setting does not take effect until the grid is restarted. We recommend that you set this property when the grid is stopped.

N/A

ColUdc

Yes

Specifies a UDC for the specified column.

Note: If you have a UserValue column, you must save the user values before you change the UDC to keep the values. The change does not take effect until the grid is restarted. Call the Stop method, then set the column UDC, then call the Start method to restart the grid with the new configuration.

Columns

N/A

Yes

Specifies the number of columns that are defined for the object or the XML that represents the list of displayed columns. Use the OCX Properties dialog box to select.

For a WatchList Tool, Columns specifies the identifier of each column. Items are semicolon separated.

N/A

ColUnknownTag

Yes

Selects the Unknown Tag option for the specified column.

Note: If the Group Grid is started when you set this property, the new setting does not take effect until the grid is restarted. We recommend that you set this property when the grid is stopped.

ContextMenuXml

ContextMenuXml

Yes

ContextMenuXml identifies an XML string that defines the contents and Event IDs for the object’s custom context menu. See Custom Context Menus for more information about configuring custom menus for ActiveX Controls.

ActiveX Control Example

The following example includes one new menu item (New Item).

Copy

ContextMenuXML for Event Summary Control

<CustomContextMenu>
    <items>
        <ContextMenuDef>
            <itemsHidden/>
            <items>
                    <MenuItem Disable1="false" Disable2="false" Disable3="false" Description="New Context Menu Item (at bottom)" EventID="NEWID"/>
            </items>
        </ContextMenuDef>
    </items>
</CustomContextMenu>

CAS View Control Example

The CAS View Control includes additional options to hide default menu items. The following example includes one new menu item (New Item) and one hidden item (Suppress…). See CAS View Control.

Copy
ContextMenuXML for CAS View Control
<CustomContextMenu>
    <items>
        <ContextMenuDef>
            <itemsHidden>
                <DefaultMenuItem MenuId="1021" Desc="Suppress..." Type="0"/>
            </itemsHidden>
            <items>
                <MenuItem Disable1="true" Disable2="false" Disable3="false" Description="New Item" EventID="NEWID"/>
            </items>
        </ContextMenuDef>
    </items>
</CustomContextMenu>

CornerLabelText

CornerLabelText

Yes

Specifies text that is displayed in the top, left cell of the grid. In Run mode, this cell has inherent right-click options (trend, export, show row numbers, and so on). Use the OCX Properties dialog box (Default page, Label property) to define.

CursorPointer

CursorPointer

No

For TheView, CursorPointer selects the cursor icon that appears when you mouse over objects.

For objects, CursorPointer selects the cursor icon for the instance of the object. The object’s cursor pointer takes precedence over TheView’s cursor pointer.

The default is 0 — Default. For TheView, this is an arrow. For other objects, the icon configured for TheView is used. Other options are:

  • 1 — Arrow
  • 2 — IBeam
  • 3 — Cross
  • 4 — UpArrow
  • 5 — NoDrop
  • 6 — Help
  • 99 — HotSpot
  • 100 — Timer

Script subtype is long.

N/A

DisplayFont

No

 

Enable

Enable

No

Enable specifies whether the user is able to interact with the object. Options are 0 — No and 1 — Yes. The default is 1 — Yes. If set to 0 — No, the object is still visible but its context menu is disabled.

Other options:

  • Completely hide the object in run mode using the Visible property.
  • Display the object but hide its [DisplayItem] using the [DisplayElement] property.

EnableRowSelect

EnableRowSelect

Yes

Enables the selection frame around the entire row (shown when a user clicks on a row in Run mode). Default is 1 — Yes. If set to 0 — No the selection frame is shown only on the cell. This property is visual only. It does not affect the [AutoRestart] property.

EnableTrendMenu

EnableTrendMenu

Yes

Enables the trending options on the right-click menu in Run mode. Default is 1 — Yes.

Facility

Facility

Yes

The relevant facility here. This facility is typically that of the dynagraph-enabled remote device from which you want to collect dynagraph data. Script subtype is string.

FlexHorizontal

N/A

No

FlexHorizontal specifies whether the object moves or resizes horizontally or is unchanged when TheFrame is resized. Options are:

  • 0 — None (no resizing occurs)
  • 1 — Shift (the object is shifted)
  • 2 — Expand (the object expands or shrinks the same number of pixels as TheFrame)
  • 3 — Proportional (the object expands or shrinks proportionally to TheFrame)

Default is 0 — None.

FlexVertical

N/A

No

FlexVertical specifies whether the object moves or resizes vertically when TheFrame is resized. Options are:

  • 0 — None (no resizing occurs)
  • 1 — Shift (the object is shifted)
  • 2 — Expand (the object expands or shrinks the same number of pixels as TheFrame)
  • 3 — Proportional (the object expands or shrinks proportionally to TheFrame)

Default is 0 — None.

Font

Font

Yes

Font specifies the font for the object.

For TheView, this property specifies the default font for text-based objects.

For other objects, it specifies the font for the instance of the object. The object’s font takes precedence over the font set for TheView.

Click to view the Font dialog box, which you can use to configure the font. The default is MS Shell Dlg (MS Sans Serif, regular, 8 pt). Script subtype is string.

Note: In script, you can set font properties using "-13, Arial" for example.

N/A

ForeColor

No

ForeColor specifies the foreground color for the object. The default is Automatic, which, for most objects is black. Note that if the object’s [AlarmElement] is set to Foreground Color and a primary point has been assigned to the object, the foreground color will change in Run mode to reflect the point status.

Note: In script, you can set this and other color properties using the VBScript function 'control.somecolor = RGB (255,0,0).'

Group

Group

No

Group groups objects into a discrete sequence that can be navigated using the arrow keys.

Options are 0 — No and 1 — Yes. The default is 0 — No.

To use this property:

1. Add objects that use the Group property to a screen.

2. Position them as you like (typically in a spatial configuration that reflects the order in which they were added to the screen).

3. Decide where in the spatial configuration logical groups begin and end.

4. Mark the beginning of a group by setting the Group property to 1 — Yes for the first object in the group.

5. Set Group set to 0 — No for other objects in the group.

The group is made up of all objects that 1) are added sequentially after an object with a Group property set to 1 — Yes and 2) that use a Group property set to 0 — No. A group's arrow navigation sequence reflects the order in which its objects were added to a screen.

This property is not related to the Draw > Group option in the CygNet Studio menu bar. This property might not be suited for use with all tools that include the Group property.

Script subtype is long.

See also Tabstop.

N/A

GroupID

No

Specifies the GroupID of the object group.

N/A

HasValidTag

No

Returns a Boolean value to confirm a CygNet-aware tool is associated with a valid CygNet tag. This property may not be suited for use with all tools that include the HasValidTag property. See also CygNet-Aware Tools. Script subtype is Boolean.

HelpContextID

HelpContextID

No

HelpContextID specifies the object’s help identifier for context-sensitive help. TheFrame’s WhatsThisHelp must be enabled.

Script subtype is long.

N/A

IsCygNetAware

No

Returns a Boolean value that confirms that an object is a CygNet-aware tool. This property might not be suited for use with all tools that include the IsCygNetAware property. Script subtype is Boolean. See also CygNet-Aware Tools.

KeepSelection

KeepSelection

Yes

Enables maintain cell selection when the sort order is changed. Default is 1 — Yes.

Layer

LayerID

No

Layer identifies the layer on which the object resides. Script subtype is Boolean.

Left

Left

No

Left specifies the distance (in pixels) from the left edge of TheView’s scroll region to the left edge of the object. See Sizing and Positioning Objects.

[NavBar]

N/A

No

Specifies the ID of the Group Navigation Bar object that will set the facilities in the Group Grid object.

(ObjectCode)

Code

No

(ObjectCode) specifies a unique identifier of the object. You can enter up to 39 characters. Valid characters are A-Z, 0-9, and underscore (_). Spaces are not allowed. The default is the object name and the numeric instance. Script subtype is string.

(OCXProperties)

N/A

No

Displays the OCXProperty dialog box unique to the object.

PageFooter

PageFooter

Yes

Specifies the text and text tokens for the report footer when printing the grid.

PageHeader

PageHeader

Yes

Specifies the text and text tokens for the report header when printing the grid.

Right

Right

No

Right specifies the distance (in pixels) from the left edge of TheView’s scroll region to the right edge of the object. See Sizing and Positioning Objects.

N/A

RotateAngle

No

Causes the object to rotate clockwise the specified number of degrees. You can rotate an object directly by using the Rotate option on the Draw menu. For details, see Rotating an Object.

N/A

RowConfigXml

No

Gets/sets an XML string that defines the default properties of the row.

Note: This property is not intended to be used for typical scripts. It may be hidden in some property browsers.

N/A

RowFacility

Yes

Gets/sets the Facility ID for the specified row.

Note: If the Group Grid is started, setting this property will not take effect until the grid is restarted. It is recommended that these properties be set only when the grid is stopped.

[RowLabelItem]

N/A

No

Specifies the information to display as the row label. The default is Facility, which is the ID of the Facility. Other options are Facility Tag (SITE.SERVICE::FACILITYID), SiteService (the Site.Service of the facility), and Node Description (the description of the node from the navigation hierarchy, which is generally the facility description).

N/A

RowLabelText

Yes

Gets/sets the label text for the specified row.

Note: If the Group Grid is started, setting this property will not take effect until the grid is restarted. It is recommended that these properties be set only when the grid is stopped.

N/A

RowSiteService

Yes

Gets/sets the Site.Service for the specified row.

Note: If the Group Grid is started, setting this property will not take effect until the grid is restarted. It is recommended that these properties be set only when the grid is stopped.

N/A

RowUdc

Yes

Gets/sets the UDC for the specified row.

Note: If the Group Grid is started, setting this property will not take effect until the grid is restarted. It is recommended that these properties be set only when the grid is stopped.

SiteService

SiteService

Yes

[SiteService] identifies the CVS, Facility Service, or Group Service for the settings. The format for the value is Site.Service.

If this field is blank, the Site.Service specified for TheView is used. If Site.Service is defined for both TheView and the object, the value specified for the object is used.

StateColorMode

StateColorMode

Yes

[StateColorMode] Specifies if and how the object will show the alarm point’s state color: shown in a single color (1 — Single), dual colors (2 — Dual), or not at all (0 — Off). The default is Single. Options include:

  • Off (0 — eSTATECOLORMODE_OFF)
  • Single Color (1 — eSTATECOLORMODE_SINGLE)
  • Dual Colors (2 — eSTATECOLORMODE_DUAL)

Most tools have a Single mode. That is, they can reflect the point state color in a single element. The element is defined by an object’s [AlarmElement] property to specify if the state color will be shown in the object’s foreground or background. Objects that have [AlarmElement] options of both Foreground Color and Background Color, such as the Text Tool or a closed shape (ellipse, rectangle, polyline), can be configured using the [StateColorMode] property to show the point state color in dual mode; that is, both the Foreground and Background. For tools with a Dual mode, you must select the foreground and background colors using the [UseCustomStateColors] property. The default is 1 — eOFF. Options include:

  • 1 — eOFF
  • 2 — eSINGLE_FOREGROUND
  • 3 — eSINGLE_BACKGROUND
  • 4 — eDUAL

Tabstop

Tabstop

No

Tabstop specifies whether the focus stops on the object when you use the Tab key to navigate between objects (in other words, enables the object as a tab stop). Options are 0 — No and 1 — Yes. Default is 1 — Yes.

Script subtype is long.

See also Group and Tab Order.

Note: To set the tab order, use the Objects option on the Layout menu.

Tag

Tag

No

Tag is an extra field for application-specific purposes. Does not specify a CygNet point. Default is blank. Script subtype is string.

N/A

ToolTipText

No

TooltipText identifies text that is displayed when the mouse hovers over the object in Run mode. For some objects, tooltip text can be dynamic, static, or a combination. You build dynamic text with tokens that can represent point configuration, facility, and CVS point record properties. You can also specify data formatting. Click to view the Edit Tooltip Text dialog box you use to configure the text.

For information about building dynamic text using tokens, see Using Text Tokens.

Script subtype is string.

Note: Although this property is listed on the Property Sheet and in the Script Editor for many tools, it is not supported by all. For example, the Facility Navigation Bar, the Group Grid, and the Group Navigation Bar do not support this property.

N/A

ToolType

No

Returns a CygNet-defined string value that describes the object type. This value appears in the Status Bar when you hover over a default control in its tool palette. You can also display the value using a script. This property is read only. See also Rule-Based Substitution.

Script subtype is string.

Top

Top

No

Top specifies the distance (in pixels) from the top of TheView’s scroll region to the top of the object. See Sizing and Positioning Objects.

UpdateInterval

UpdateInterval

Yes

For TheView, this property specifies the rate (in milliseconds) at which TheView requests new data from the services (that is, the rate at which TheView is refreshed). Valid range is any integer between 100 to 1000000000. The default is 1000.

For the Group Grid Tool, this property specifies the rate (in milliseconds) at which the grid requests data from the cache. Valid range is any integer from 100 to 1000000000. Default is 100.

Script subtype is long.

UseCustomStateColors

UseCustomStateColors

Yes

[UseCustomStateColors] enables the use of the [CustomStateColors].

  • For TheView, this property enables use of TheView’s [CustomStateColors]. Default is 1 — Yes.
  • For objects, this property enables use of the object’s [CustomStateColors]. Default is 1 — Yes.

If this property is set to 0 — No for an object and is set to 1 — Yes for TheView, the object will use the custom state colors of TheView.

[UseViewUnits]

UseViewUnits

No

Enables the object to use the [Units] property of TheView or the parent view (for the Nested View Tool) rather than its own units. Default is 0 — No.

Visible

Visible

No

Visible secifies whether the object is visible in Run mode. Options are 0 — No or 1 — Yes. Default is 1 — Yes.

Note: Objects are always visible in Edit mode, regardless of how this property value is set.

You can also:

Back to top